<?php
error_reporting(0);
	header("content-type:text/html;charset=utf-8");
	@$action=$_GET['action']==""?"welcome":$_GET['action'];
   
	$dir=str_replace('\\','/',dirname(__FILE__));//当前文件所在的跟目录
	
//	require("./controller/welcome.php");
	require_once($dir.'/controller/' .$action.".php");
	require("./conf/config.php");

    $host='http://'.$_SERVER['HTTP_HOST'];
//	echo $_SERVER['HTTP_HOST'];//得到的是当前的域名 localhost
//  echo "<br/>";
	define('__IMG__','/home/static/images' );//定义图片的路径
	define('__CSS__','/home/static/css' );
	define('__JS__','/home/statics/js' );
//	echo __IMG__;
    $newPdo = new $action();
    
 
	
    
	


	
	?>
	